package IO流;

import java.io.File;
import java.nio.file.FileSystem;

public class Dir5 {
    public static void main(String[] args) {
       var f=new File(System.getProperty("user.dir"));
        for(File t:f.listFiles()){
            System.out.printf("%s[%s]%n",t.getName(),t.isDirectory()? "目录":"文件");
        };

    }

}
